package abstractfactory.factory;

import abstractfactory.interf.Color;
import abstractfactory.interf.Shape;

/**
 * @ClassName AbstractFactory
 * @Description TODO
 * @Author 马继斌
 * @Email 1423553596@qq.com
 * @Date 18-8-29 上午5:27
 **/
public abstract class AbstractFactory {
    /**
     * 返回Color对象
     * @param color 颜色类型
     * @return
     */
    public abstract Color getColor(String color);

    /**
     * 返回Shape对象
     * @param shape 形状类型
     * @return
     */
    public abstract Shape getShape(String shape);
}
